<?php
include './funcoes/funcoes.php';


if (isset($_GET['view'])) {
    $view = $_GET['view'];
    switch ($view) {
        case 'regras' :
            $caminho = VIEW . 'regras.php';
            break;
        case 'home' :
            $caminho = VIEW . 'home.php';
            break;
        
    }
}
?>
<!DOCTYPE html>
<html lang="pt-BR">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <link rel="shortcut icon" href="imagens/ico_16.png"/>
        <meta charset="utf-8">
        <title>Aplicativo de Bolão de Futebol</title>
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
        <link href="bootstrap/css/justified.css" rel="stylesheet">
        <link href="bootstrap/css/classes.css" rel="stylesheet">
        <link href="bootstrap/css/styles.css" rel="stylesheet">
        <!--[if lt IE 9]>
                <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
        <![endif]-->
    </head>
    <body>
        <div class="menu">
            <?php include LAYOUT . 'menu.php'; ?>
        </div>
        <div class="container marginTop10px">
            <div class="central">
                <?php if (isset($caminho)) { ?>
                    <?php include $caminho; ?>
                <?php } ?>
            </div>
        </div>
        <div class="rodape">
            <?php include LAYOUT . 'rodape.php'; ?>
        </div>
        <!-- script references -->
        <script src="bootstrap/jquery/jquery.min.js"></script>
        <script src="bootstrap/js/bootstrap.min.js"></script>
        <script src="bootstrap/js/scripts.js"></script>
    </body>
</html>